<template>
  <div class="w">
    <div class="w-top">
      <div class="w-top-left">
        <el-card class="box-card">
          <el-tabs v-model="activeName" @tab-click="handleClick">
            <el-tab-pane name="first">
              <span slot="label">公告<svg-icon icon-class="bigRedPoint" /></span>
              <ul class="notice-list">
                <li v-for="o in 5" :key="o"><p><svg-icon icon-class="redPoint" />这里是公告 <span>2021-04-20 12:50:49</span></p></li>
              </ul>
            </el-tab-pane>
            <el-tab-pane name="second">
              <span slot="label">文件<svg-icon icon-class="bigRedPoint" /></span>
              <ul class="notice-list">
                <li v-for="o in 5" :key="o"><p><svg-icon icon-class="redPoint" />这里是文件 <span>2021-04-20 12:50:49</span></p></li>
              </ul>
            </el-tab-pane>
            <el-tab-pane name="third">
              <span slot="label">审核<svg-icon icon-class="bigRedPoint" /></span>
              <ul class="notice-list">
                <li v-for="o in 5" :key="o"><p><svg-icon icon-class="redPoint" />这里是审核 <span>2021-04-20 12:50:49</span></p></li>
              </ul>
            </el-tab-pane>
          </el-tabs>
        </el-card>
      </div>
      <div class="w-top-right">
        <el-card v-for="i in 6" :key="i" class="box-card">
          <div class="title">
            <p>本年度培训活动次数</p>
            <p><span>883</span><small>次</small></p>
          </div>
          <p class="total-N">本月培训次数: 12次</p>
        </el-card>
      </div>
    </div>
    <div class="w-f">
      <el-card class="box-card">
        <div slot="header" class="clearfix">
          <span class="activist-Numb">培训活动次数</span>
          <span class="join-Numb">参与人次</span>
          <span style="float: right; padding: 3px">
            <el-button type="primary" round>今年</el-button>
            <el-button type="primary" round>本月</el-button>
            <el-button type="primary" round>本周</el-button>
            <el-date-picker
              v-model="value1"
              style="margin-left: 10px;width:280px;"
              type="daterange"
              range-separator="至"
              start-placeholder="开始日期"
              end-placeholder="结束日期"
            /></span>
        </div>
        <div class="box-card-left"><echartBar /></div>
        <div class="box-card-right">
          <p class="rank-title">学校参与人次排名</p>
          <ul>
            <li v-for="o in 9" :key="o"><p><span class="person-rank">{{ o }}</span><span class="rank-content">学校参与人次排名</span><span class="numb-rank">54545</span></p></li>
          </ul>
        </div>
      </el-card>
    </div>
  </div>
</template>

<script>
import echartBar from '@/echart'
export default {
  components: {
    echartBar
  },
  data() {
    return {
      activeName: 'first',
      value1: ''
    }
  }
}
</script>

<style lang="scss" scoped>
 .w{
    width:1255px;
    margin: auto;
   &-top{
    margin-top: 35px;
    display: flex;
 &-left{
    width: 430px;
    .box-card{
    height: 311px;
    margin-bottom:10px
    }
 }
 &-right{
  width: 950px;
  display: flex;
  flex-wrap: wrap;
  .box-card{
    width: 276px;
    height: 150px;
    margin-bottom:10px;
    margin-left: 10px;
    .title{
     height: 40px;
     font-size: 13px;
     p:last-of-type{
     margin-top: 10px;
     span{
     font-size: 30px;
     }
     }
    }
    .total-N{
      font-size: 13px;
      &::before{
      margin-top: 18%;
      margin-bottom: 6%;
      display: block;
      content: " ";
      width: 100%;
      height: 1px;
      background-color:gainsboro;
    }
    }
  }
  }
  }
&-f{
  position: relative;
  .box-card{
    width: 1250px;
    height: 400px;
    margin-top: 20px;
    .clearfix{
      line-height: 45px;
    .activist-Numb{
      display: inline-block;
      text-align: center;
       height:53px;
       line-height: 53px;
       font-weight: 700;
       font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑', sans-serif;
       font-size: 16px;
       width: 100px;
       border-bottom: 3px solid rgba(24, 144, 255, 0.847058823529412);
      }
      .join-Numb{
      display: inline-block;
      text-align: center;
       line-height: 53px;
       height: 53px;
       width: 75px;
       margin-left: 20px;
      border-bottom: 3px solid rgba(24, 144, 255, 0.847058823529412);
      }
    }
    &-right{
      position: absolute;
      top: 79px;
      width: 360px;
      height: 340px;
      right: 69px;
      .rank-title{
        margin-top: 5px;
        margin-bottom: 12px;
      }
      ul{
        list-style: none;
        }
      li{
        padding-top: 5px;
        .person-rank{
      display: inline-block;
      text-align: center;
      width: 25px;
      height: 25px;
      border-radius: 50%;
      background-color:red;
      color: white;
      padding-top:5px;
      padding-left:1px;
      margin-left: 5px;
          }
       .rank-content{
         margin-left: 10px;
       }
       .numb-rank{
         margin-left: 100px;
       }
      }
    }
  }
  }
  }
  .notice-list{
    li{
    line-height: 40px;
    }
    i{
      width: 4px;
      height: 4px;
      background-color: red;
      border-radius: 50%;
    }
    span{
     float: right;
     font-size: 10px;
    }
    .el-tabs__content{
      display: none;
    }
  }
  ::v-deep .el-card__header{
      padding: 4px 20px;
    }
</style>
